/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include "向量.h"
#include "PxPhysicsAPI.h"




typedef struct {
	physx::PxPhysics*				m_Physics;
	physx::PxCooking*				m_Cooking;
}Px环境;




struct S_Px物理引擎核心 {

	//physx::PxDefaultAllocator		m_Allocator;
	//physx::PxDefaultErrorCallback	m_ErrorCallback;
	physx::PxFoundation*			m_Foundation;
	physx::PxDefaultCpuDispatcher*	m_CPU调度;
	physx::PxCudaContextManager*	m_CudaContextManager;

	physx::PxDefaultAllocator		m_DefaultAllocatorCallback;
	physx::PxDefaultErrorCallback	m_DefaultErrorCallback;
	


	physx::PxPhysics*				m_Physics;
	physx::PxCooking*				m_Cooking;

	physx::PxSerializationRegistry* mSerializationRegistry;

	S_Px物理引擎核心();
	~S_Px物理引擎核心();


	physx::PxScene* f_scene_创建场景();


};


